package com.xdclass.mobile.mobilexdclassredis.controller.Seckill;

import com.xdclass.mobile.mobilexdclassredis.service.SeckillService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created whit IntelliJ IDEA
 * User:杨骏杰
 * Date:2021/3/31
 * Time:13:27
 * 秒杀类
 */
@RestController
public class SeckillController {

    @Resource
    private SeckillService seckillService;

    @RequestMapping("/redis/seckill")
    public String seckill(int uid,int skuId){
        return seckillService.seckill(uid,skuId);
    }
}
